package mumuxi_1;

import android.animation.TypeEvaluator;

public class DiyEvaluator implements TypeEvaluator<Object>{
    
    private OnCallEvaluator call;
    
    public interface OnCallEvaluator{
        public Object onCall(float val,Object startval,Object endval);
    }
    
    
    public DiyEvaluator(OnCallEvaluator call){
        this.call = call;
    }
    
    @Override
    public Object evaluate(float val,Object startval,Object endval){
        return call.onCall(val,startval,endval);
    }
    
    
    
} 